import { Component } from "react";
import style from './header.module.css'

export default class Header extends Component {
    state = {

    }
    render(){
        const { onBack,title } = this.props;
        return(
            <>
                <div className={style.header}>
                    <div className={style.back} onClick={onBack}>返回</div>
                    <div className={style.title}>{title}</div>
                </div>
            </>
        )
    }
}